<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%
	//System.out.println("mmmmm");
	HttpSession loginSession = request.getSession(true);
	String isLogged = (String) loginSession.getAttribute("isLogged");
	String welcome = null;
	if(isLogged==null)
	{
		System.out.println("Not loGin");
	}
	else{
		String userType = (String) loginSession.getAttribute("userType");
		if(userType!=null){
			if(userType=="1")
				welcome = "Welcome," + loginSession.getAttribute("guestUserID");
			else
				welcome = "Welcome," + loginSession.getAttribute("hostUserID");
		}
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<div id="checkLogged"><%if(isLogged==null){%>Yes<%} %></div>
<div id="account"><%if(isLogged!=null){%><%=welcome %><%}else{ %>my account<%} %></div>
</body>
</html>